package tack08.a;

public class System {
    //报告
    public String report;
    //电子眼
    public String electronic;

    public System(String report){
        this.report = report;
    }


    //发现 discover
    public void discover(TrafficPolice trafficPolice , Vehicle vehicle){
        java.lang.System.out.println(this.report + " " + vehicle.type +" " +vehicle.brand +"  " + vehicle.colour +" " +
                "车牌" + vehicle .license + "  在路上飞驰由" + trafficPolice.name + "处理");

    }
    public void discover1(TrafficPolice trafficPolice , Vehicle vehicle){
        java.lang.System.out.println(this.report + " " +vehicle.type +" " +vehicle.brand +"  " + vehicle.colour +" " +
                "车牌" + vehicle .license + "  路边违停" + trafficPolice.name + "处理");
    }

    public static void main(String[] args) {
        System system = new System("系统报告");
        TrafficPolice trafficPolice = new TrafficPolice("谭警官");
        TrafficPolice trafficPolice1 = new TrafficPolice("张警官");
        Vehicle vehicle = new Vehicle("轿车","奥迪","黑色",12345);
        Vehicle vehicle1 = new Vehicle("越野车","保时捷","咖啡色",55555);
        Vehicle vehicle2 = new Vehicle("跑车","法拉利","红色",66666);
        system.discover(trafficPolice,vehicle2);
        system.discover1(trafficPolice1,vehicle);
        system.discover1(trafficPolice1,vehicle1);
    }


}
